package com.ruoyi.wechat.mapper;

import java.util.List;
import com.ruoyi.wechat.domain.Dynamic;

/**
 * dynamicMapper接口
 * 
 * @author yeluochen
 * @date 2024-12-24
 */
public interface DynamicMapper 
{
    /**
     * 查询dynamic
     * 
     * @param id dynamic主键
     * @return dynamic
     */
    public Dynamic selectDynamicById(Long id);

    /**
     * 查询dynamic列表
     * 
     * @param dynamic dynamic
     * @return dynamic集合
     */
    public List<Dynamic> selectDynamicList(Dynamic dynamic);


    public List<Dynamic> selectDynamicAndImageList(Dynamic dynamic);

    /**
     * 新增dynamic
     * 
     * @param dynamic dynamic
     * @return 结果
     */
    public int insertDynamic(Dynamic dynamic);

    /**
     * 修改dynamic
     * 
     * @param dynamic dynamic
     * @return 结果
     */
    public int updateDynamic(Dynamic dynamic);

    /**
     * 删除dynamic
     * 
     * @param id dynamic主键
     * @return 结果
     */
    public int deleteDynamicById(Long id);

    /**
     * 批量删除dynamic
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDynamicByIds(Long[] ids);
}
